package javase2.day02.demo02;
//创建对象时些写什么泛型，创建什么对象
public class Demo02GenericClass {
    public static void main(String[] args) {
        GenericClass<Integer> gc1=new GenericClass<>();
        gc1.setName(1);
        Integer name = gc1.getName();
        System.out.println(name);

        GenericClass<String> gc2=new GenericClass<>();
        gc2.setName("ljh");
        String name1 = gc2.getName();
        System.out.println(name1);
    }
}
